﻿<%@ Page Title="admin_createuser" Language="C#" MasterPageFile="~/main/masterpage/main_level1.Master"
    AutoEventWireup="true" CodeBehind="createuser.aspx.cs" Inherits="nkstdgia.main.membership.createuser" %>

<%@ Register Assembly="wsRK.wsControls" Namespace="wsRK.wsControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phd_content" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="webapplication_form_header">
                <div class="left">
                    <h1>
                        <asp:Label ID="lblListUser" runat="server"><%= base.getValueFromLocale("CreateNewUser")%></asp:Label>
                    </h1>
                </div>
                <div class="right">
                    <asp:Literal ID="litResult" runat="server"></asp:Literal>
                </div>
            </div>
            <div class="action_bar">
                <div class="right ">
                    <cc1:wsBtnAction ID="WsBtnAction7" runat="server" LocaleText="Trở lại" ButtonType="ButtonBack"
                        PostBackUrl="User.aspx"></cc1:wsBtnAction>
                </div>
            </div>
            <table id="tbCreateUser" runat="server" class="option_table">
                <tr>
                    <td style="width: 150px">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Xác nhận password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                            ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                            ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                            ErrorMessage="E-mail cần phải nhập." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                            ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="Password và Xác nhận password phải giống nhau"
                            ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                        <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <cc1:wsBtnAction ID="btnAddUser" runat="server" LocaleText="Add" ButtonType="ButtonAdd" ValidationGroup="CreateUserWizard1"
                            OnClick="btnAddUser_Click"></cc1:wsBtnAction>
                    </td>
                </tr>
            </table>
            <table id="tbFinish" runat="server" class="option_table">
                <tr>
                    <td>
                        Chọn một hoặc nhiều nhóm bên dưới:
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:ListBox ID="AvailableRoles" runat="server" SelectionMode="Multiple"></asp:ListBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <cc1:wsBtnAction ID="btnFinish" runat="server" LocaleText="Finish" ButtonType="ButtonAdd"
                            OnClick="btnFinish_Click"></cc1:wsBtnAction>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="phd_footer" runat="server">
</asp:Content>
